<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>编辑应用</title>
    <link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.validate.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/input.js"></script>
    <script type="text/javascript">
        $().ready(function() {
            var $inputForm = $("#inputForm");
           [@flash_message /]
            var $browserButton = $("#browserButton");
            $browserButton.browser({basePath:"/member"});
        });
    </script>
</head>
<body>
<div class="path">
    <a href="${base}/admin/common/index.do">首页</a> &raquo;编辑用户
</div>
<form id="inputForm" action="save" method="post" class="required-form" onsubmit="return validateForm(this)">
    <table class="input tabContent">
        <tr>
            <th>
                <span class="requiredField">*</span>用户名
            </th>
            <td>
                <input type="text" name="username" class="text required"  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>密码
            </th>
            <td>
                <input type="text" name="password" class="text required" value="" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>LOGO
            </th>
            <td>
                <span class="fieldSet">
						<input type="text" id="logo" name="logo" class="text valid" value="" maxlength="200">
						<input type="button" id="browserButton" class="button" value="选择文件">
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>姓名/公司
            </th>
            <td>
                <input type="text" name="name" class="text required" value=""  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>证件号码
            </th>
            <td>
                <input type="text" name="cardNo" class="text required" value=""  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>昵称/应用名称
            </th>
            <td>
                <input type="text" name="nickname" class="text required" value=""  maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>电话号码
            </th>
            <td>
                    <span class="fieldSet">
					    <input type="text" name="mobile" value=""  class="text required" maxlength="64" />
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否启用:
            </th>
            <td>
                <select name="isEnabled" class="text required">
                    <option  value="1" >有效</option>
                    <option  value="0">无效</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否锁定:
            </th>
            <td>
                <select name="isLocked" class="text required">
                    <option value="1" >有效</option>
                    <option  value="0">无效</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>用户类型:
            </th>
            <td>
                <select name="memberType" class="text required">
                    <option  value="0" >普通用户</option>
                    <option  value="1">商家用户</option>
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>站点
            </th>
            <td>
                    <span class="fieldSet">
					    <input type="text" name="url"   class="text required" maxlength="64" />
					</span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>描述
            </th>
            <td>
                <span class="fieldSet">
					    <input type="text" name="description"  class="text required" maxlength="64" />
                </span>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否上架
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isMarketable"/>发布
                </label>
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>是否列出
            </th>
            <td>
                <label>
                    <input type="checkbox" name="isList"/>发布
                </label>
            </td>
        </tr>
        <tr>
            <th>
                &nbsp;
            </th>
            <td>
                <input type="submit" class="button" value="提交" />
                <input type="button" class="button" value="返回" onclick="location.href='list'"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>